package com.xmg.shop.api.domain;

import lombok.Getter;
import lombok.Setter;

@Setter@Getter
public class CatalogProperty extends BaseDomain {
    private Long catalogId;

    private String name;

    private Integer sequence;

    private Byte type;

    public String getPropertyType() {
        switch (type) {
            case 0:
                return "输入框";
            case 1:
                return "多选框";
            case 2:
                return "下拉列表";
                default:
                    return "";
        }
    }

}